<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
    xmlns:pm="http://primefaces.org/mobile">
    
    <f:view renderKitId="PRIMEFACES_MOBILE" />
    
    <h:head>
        <h:outputStylesheet name="main/css/sh.css" />
    </h:head>
    
    <h:body>
        
        <pm:page id="first">
            <pm:header title="Page 1"></pm:header>
            
            <pm:content>
                <p>Multiple pages can be placed in a single xhtml page, see source for the structure and <h:link outcome="navigation">navigation example</h:link> for the navigation model
                    using a custom mobile navigation handler.</p>
                
                <h2>Source</h2>
                <p:accordionPanel activeIndex="-1">
                    <p:tab title="multiPage.xhtml">
                        <pre class="brush:xml">
&lt;!DOCTYPE html&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
    xmlns:pm="http://primefaces.org/mobile"&gt;
    
    &lt;f:view renderKitId="PRIMEFACES_MOBILE" /&gt;
    
    &lt;h:head&gt;

    &lt;/h:head&gt;
    
    &lt;h:body&gt;
        
        &lt;pm:page id="first"&gt;
            &lt;pm:header title="Page 1"&gt;&lt;/pm:header&gt;
            
            &lt;pm:content&gt;
                &lt;p&gt;Multiple pages can be placed in a single xhtml page.&lt;/p&gt;
            &lt;/pm:content&gt;
        &lt;/pm:page&gt;

        &lt;pm:page id="second"&gt;
            &lt;pm:header title="Page 2"&gt;&lt;/pm:header&gt;
            
            &lt;pm:content&gt;
                &lt;p&gt;Page 2 content.&lt;/p&gt;
            &lt;/pm:content&gt;
        &lt;/pm:page&gt;

        //more pages

    &lt;/h:body&gt;
    
&lt;/html&gt;
                        </pre>
                    </p:tab>
                </p:accordionPanel>
                
            </pm:content>
        </pm:page>
        
        <pm:page id="second">
            <pm:header title="Page 2"></pm:header>
            
            <pm:content>
                <p>Page 2 content.</p>
                <h:outputLink value="#main">Go to Page 1</h:outputLink>
            </pm:content>
        </pm:page>
        
        <script language="javascript" src="#{request.contextPath}/resources/main/js/sh.js"></script>
        <script language="javascript">
            SyntaxHighlighter.all();
        </script>
        
    </h:body>
    
</html>